# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=smtpscan
pkgver=0.5
pkgrel=12
epoch=
groups=('blackarch' 'blackarch-fingerprint')
pkgdesc="An SMTP scanner"
arch=('any')
url="http://packetstormsecurity.com/files/31102/smtpscan-${pkgver}.tar.gz.html"
license=('GPL2')
depends=('perl' 'perl-net-dns')
source=("https://dl.packetstormsecurity.net/UNIX/scanners/$pkgname-$pkgver.tar.gz")
sha512sums=('6d105b95322dcf96a2e205285174e5b63fc836896d3d38d65d22b4ed295ea51c20c242414355f3b0bb765ecba3543e3f61483c39a48c755ec6293aff113594d7')

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/bin"
  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 755 "$srcdir/$pkgname/src/$pkgname" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 "$srcdir/$pkgname/src/fingerprints" \
    "$pkgdir/usr/share/$pkgname/"
  install -Dm 644 "$srcdir/$pkgname/src/tests" "$pkgdir/usr/share/$pkgname"
  install -Dm 644 "$srcdir/$pkgname/docs/man/smtpscan.1" \
    "$pkgdir/usr/share/man/man1"
}

